#ifndef JTYPES_H
#define JTYPES_H

#include <stdio.h>

typedef unsigned char  u1;
typedef unsigned short u2;
typedef unsigned int   u4;

enum {
  ACC_PUBLIC=0x0001,
  ACC_PRIVATE=0x0002,
  ACC_PROTECTED=0x0004,
  ACC_STATIC=0x0008,
  ACC_FINAL=0x0010,
  ACC_SYNCHRONIZED=0x020,
  ACC_VOLATILE=0x0040,
  ACC_TRANSIENT=0x0080,
  ACC_NATIVE=0x0100,
  ACC_INTERFACE=0x0200,
  ACC_ABSTRACT=0x0400
};

inline void printAccessFlags(u2 flags)
{
  if(flags&ACC_PUBLIC)  printf(" public ");
  if(flags&ACC_PRIVATE) printf(" private ");
  if(flags&ACC_PROTECTED) printf(" protected ");
  if(flags&ACC_STATIC) printf(" static ");
  if(flags&ACC_SYNCHRONIZED) printf(" synchronized ");
  if(flags&ACC_VOLATILE) printf(" volatile ");
  if(flags&ACC_TRANSIENT) printf(" transient ");
  if(flags&ACC_NATIVE) printf(" native ");
  if(flags&ACC_INTERFACE) printf(" interface ");
  if(flags&ACC_ABSTRACT) printf(" abstract ");
}



#endif
